26b0f0c6bc28dc33f0bba2d4129c146d841d5ca2,hotel-api-sdk/src/main/java/com/hotelbeds/distribution/hotel_api_sdk/HotelApiClient.java,HotelApiClient,doBookingConfirm,#BookingRQ#,307

Before Change


    //TODO Fix so it does return an object of the proper type, else throw an error if failed
    //TODO Documentation pending
    public BookingRS doBookingConfirm(BookingRQ request) throws HotelSDKException {
        final ResponseEntity<BookingRS> responseEntity = callRemoteAPI(request, HotelApiPaths.BOOKING_CONFIRM);
        final BookingRS response = responseEntity.getBody();
        return response;
    }

    public BookingCancellationRS cancel(String bookingId) throws HotelSDKException {

After Change


    // TODO Fix so it does return an object of the proper type, else throw an error if failed
    // TODO Documentation pending
    public BookingRS doBookingConfirm(BookingRQ request) throws HotelSDKException {
        return (BookingRS) callRemoteAPI(request, HotelApiPaths.BOOKING_CONFIRM);
    }

    public BookingCancellationRS cancel(String bookingId) throws HotelSDKException {